<?php

/**
 * ClassName:框架返回协议对象
 * @auditor LeiJunXiang
 * @time 2024/09/11
 */

namespace app\factory\model;

class ResponseAgreement
{
    const MODEL_RESPONSE_AGREEMENT = "ResponseAgreement";
    //错误码
    protected $errCode;
    //错误信息
    protected $errMsg;
    //内容
    protected $content;
    //ObjKey
    protected $objKey;

    public function __construct()
    {
        $this->errMsg = "";
        $this->errCode = "";
        $this->content = [];
    }


    /**
     *  析构方法
     */
    public function __destruct()
    {
        $this->errMsg = "";
        $this->errCode = "";
        $this->content = [];
    }

    /**
     * （属性数组）获取属性
     */
    public function getAttribute()
    {
        $arr = get_object_vars($this);
        unset($arr['objKey']);
        return $arr;
    }


    /**
     * @return mixed
     */
    public function getErrMsg()
    {
        return $this->errMsg;
    }

    /**
     * @param mixed $errMsg
     */
    public function setErrMsg($errMsg): void
    {
        $this->errMsg = $errMsg;
    }

    /**
     * @return mixed
     */
    public function getErrCode()
    {
        return $this->errCode;
    }

    /**
     * @param mixed $errCode
     */
    public function setErrCode($errCode): void
    {
        $this->errCode = $errCode;
    }

    /**
     * @return mixed
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @param mixed $content
     */
    public function setContent($content): void
    {
        $this->content = $content;
    }

    /**
     * @return mixed
     */
    public function getObjKey()
    {
        return $this->objKey;
    }

    /**
     * @param mixed $objKey
     */
    public function setObjKey($objKey): void
    {
        $this->objKey = $objKey;
    }




}